package master.system.function;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import master.support.DomainObject;

/**
 * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
 */
@Table(name="sys_funtion")
public class Function extends DomainObject {

	// 功能名称
	@NotNull
	@Column(name="NAME")
    private String name;
	
    // URL
	@Column(name="URL")
	private String url;
	
    // 排序用，数值小，排序在前
	@Column(name="PRIORITY")
	private int priority;
	
    // 描述
	@Column(name="DESCRIPTION")
	private String description;

	// 模块ID
	@Column(name="MODULE_ID")
    private long moduleId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

	public long getModuleId() {
		return moduleId;
	}

	public void setModuleId(long moduleId) {
		this.moduleId = moduleId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
}
